package com.learn.ert.controller;

import com.learn.ert.base.BaseApiService;
import com.learn.ert.base.BaseResponse;
import com.learn.ert.mapper.ErPersonMapper;
import com.learn.ert.service.ErPersonService;
import com.learn.ert.utils.HttpUtils;
import io.swagger.annotations.Api;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import java.util.Map;


/**
 * 
 *
 * @author sjf
 * @email 2334593702@qq.com
 * @date 2020-08-14 17:47:02
 */
@RestController
@RequestMapping("api/erperson")
@Api(tags = "角色权限管理接口")
public class ErPersonController {
    @Autowired
    private ErPersonService erPersonService;
/*

    */
/**
     * 列表
     *//*

    @RequestMapping("/list")
  //  @RequiresPermissions("api:erperson:list")
    public R list(@RequestParam Map<String, Object> params){
        PageUtils page = erPersonMapper.queryPage(params);

        return R.ok().put("page", page);
    }


    */
/**
     * 信息
     *//*

    @RequestMapping("/info/{peId}")
   // @RequiresPermissions("api:erperson:info")
    public R info(@PathVariable("peId") Integer peId){
		ErPersonEntity erPerson = erPersonMapper.selectById(peId);

        return R.ok().put("erPerson", erPerson);
    }

    */
/**
     * 保存
     *//*

    @RequestMapping("/save")
   // @RequiresPermissions("api:erperson:save")
    public R save(@RequestBody ErPersonEntity erPerson){
		erPersonMapper.insert(erPerson);

        return R.ok();
    }

    */
/**
     * 修改
     *//*

    @RequestMapping("/update")
    //@RequiresPermissions("api:erperson:update")
    public R update(@RequestBody ErPersonEntity erPerson){
		erPersonMapper.updateById(erPerson);

        return R.ok();
    }

    */
/**
     * 删除
     *//*

//    @RequestMapping("/delete")
//    //@RequiresPermissions("api:erperson:delete")
//    public R delete(@RequestBody Integer[] peIds){
//		erPersonMapper.removeByIds(Arrays.asList(peIds));
//
//        return R.ok();
//    }
*/

}
